package com.kgc.easyshopping.config;

import org.springframework.beans.factory.annotation.Value;
import org.springframework.stereotype.Component;

@Component
public class AlipayConfig {
    // 应用ID,您的APPID，收款账号既是您的APPID对应支付宝账号
    @Value("${pay.aliypay.app_id}")
    private String app_id = null;

    public String getApp_id() {
        return app_id;
    }

    public void setApp_id(String app_id) {
        this.app_id = app_id;
    }

    // 商户私钥，您的PKCS8格式RSA2私钥
    public static String merchant_private_key = "MIIEvAIBADANBgkqhkiG9w0BAQEFAASCBKYwggSiAgEAAoIBAQCHI6CQ45TKRrqGHhg2ECcfZd4vNpJIR6MxwU53fPI8S9jmjtNJYWUcrurN3hqUl27MriSDVcSPgikvuaVzLg4rJXwPN1M7tyaOQqtrxGamyNcNHu8RWxFgh4C1tJcmRgS0cLwXyUoL8c61dJKLC85ALLp8faJprURbr4KoDQAJzyqg3OL37+NVrIKyck9R0cinzZwiVR1ig2fywhXy4Q40owqij/Gnr+yFkZ2Y0u9x9Hw5T82ZIpY3/jSOfrRPcxox+qL7rtirnCN5/cwpqYIkScgtOaEeQdZFqfR3U9JBW7tg9QM035ql7ccYMuo1xZnTaeaf91fNCAgttaD06XdlAgMBAAECggEASYvfL9tbt7ZEfwdT3+Bsmk7jW8iUVhf+ve5ZWPg8EQqqUdf7L119HN4pVb8Bskqz91ry7jM4VW3eImYjoAq5lUvCN7nBZ6dmqVepWW46+5wkRbTHISfxzhoQt1NAS4khuF3+T+exj8ya1fBKbLgRGKX/HA9325F7uXZMYk8o7SzpXQJ4rDlIg4bxbXveWmr6mK7cpGmAPJip3YrTSsoRsLVgzAbM/AT4Bu/W67LZkjxzEPwmI0CRGUvh22UlY0EvYQIoBuSCjwlmZKHd26rcMBoCyPa+dq+OjKw8cvnlVIgxoSus61wdIQ8M9I6BfzeewQ07lQbp4s3P5hVDYzLUoQKBgQD7pR038oytVHIq6eX1Qu5k8S/C4QwsNNvG4k3Fh3lSflJ567p7l/gzQ861UtOJmLiGKxQBjlqkSMgSsL0YITtDseMLgVLePjYs0xd8ig24OT8ik+BO2jxC2knaqNFIhBxfqUQpUXODzs9YUn5F52d5GsopZyBIarArK91fRoTNPQKBgQCJeljAipha5gWaWgbk+92Pr2Zg6j/fTGk/BKKeDd9g9/WsRdzh9HU1m5iPonPk2pczDAHLdTYPTkU7j0jdUEHEWq+0S5gQpvKjs4mRJnYkzp/ahq8A2SQ1LzGNx3zjHEYcc9FzYQc95ieKdW+xwGcr8vv+hWYhQECTDuKWuzfFSQKBgAGX7xJun8NtOHfbGVCvRtEu0c2bHTeechHVVwa8L+F82UraWkj0EmdIs6NkTeCeLfTziuHjo+FMcK/lnJztgPGRy81D2WF85VztTUXFngafni263/2/1gfaWANhdEnQRFm6uarFUETyZ0+43gHVUEttBwCyHXs36busQG+dA7RFAoGAELbvU3mGTIbq53lKnUyCA5YvvFi+q0d/BEpr+wt0vTVoiSl1UYOHPJ1OTyhRLuHkwDAVh8cYa4P4puUk1sOLO3RLKICIXH3vwjdx4lPqyU7V4Ju/azr7S/wQ6kv2wyYM4Ci0rnJ9jukMpajhi5r48D76pFdTs3c8YqTMp8bbYQECgYAEwUGLRxpKuxVt/rYVLMpkzlWBR1OLrsrjZBcyNqyeXdjGYsJgRyFHY3Gn0lH1kWfKzbEWlKa/zGXyDVLRHglBSssgk0E/nIIO/Lf3Xzbvlc4T/nB4yH4ScBLpSKZFGUEGOqYUohn0IddzLI2QwWrAMKyLgPwxmcrMD6sK1vohug==";

    // 支付宝公钥,查看地址：https://openhome.alipay.com/platform/keyManage.htm 对应APPID下的支付宝公钥。
    public static String alipay_public_key = "MIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEArnNc2FVgl3wonI7v2rTQ2G7TQqZ/52bWFMcgWt/U6Zv5ZFSB4GKPc370pwxFAry+OViJTioP+GH+qKpUgES8W5PsU0DAGAl/z2HHogJgRK40VdCdJkPxyFdkUPce0Wub7i8I2YVxR9AmSHX+RvDy7ciJFw4/2Z1+LDHsHMwfbMCaJ0cBFVwDpzbre0IfwLZ9xuVgZZ72b4kzV9SmA/knDev8TArenkxGg14SKvqb4/Yz716cabJ0TG6jBKjWwbQYllZb7/BlYCFKHje11NIoSB4jS9xABkg4Bpoj0Zahq3p6OQ6Zcx+gAftYkKfq18TN1Vyvzao4m6MSExddA8wwuQIDAQAB";

    // 服务器异步通知页面路径  需http://格式的完整路径，不能加?id=123这类自定义参数，必须外网可以正常访问
    public static String notify_url = "http://6bf1ad79.r1.cpolar.top//eb/notify_url";

    // 页面跳转同步通知页面路径 需http://格式的完整路径，不能加?id=123这类自定义参数，必须外网可以正常访问
    public static String return_url = "http://6bf1ad79.r1.cpolar.top//eb/OrderAll.html";

    // 签名方式
    public static String sign_type = "RSA2";

    // 字符编码格式
    public static String charset = "UTF-8";

    // 支付宝网关
    public static String gatewayUrl = "https://openapi-sandbox.dl.alipaydev.com/gateway.do";

}
